<?php
/* $Id: header.php 14 2009-04-11 17:40:34Z ronan $ */
include_once("common.php");
$pageTitle=isset($pageTitle)?$pageTitle:$defaultTitle;
?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">
<html>
<head>
<style>
body {font-family: sans-serif}
a:link, a:visited, a:active {font-weight: bold; color: #6699FF}
tr.tablecolor2 {background-color: #393939;}
tr.tablecolor1 {background-color: #111111;}
tr.itemtablecolor2 {background-color: #393939;}
tr.itemtablecolor1 {background-color: #111111;}
tr.marketgrouptablecolor2 {background-color: #393939;}
tr.marketgrouptablecolor1 {background-color: #111111;}
table td {
    padding: 0.1em 0.5em 0.1em 0.5em;
    margin: 0;
    margin: 0.1em;
    vertical-align: center;
    
}
table.mainstruct td {
	border: 0
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php echo $pageTitle; ?></title>
</head>
<body bgcolor="#111111" text="#E7E7E7" link="#6699FF" alink="#6699FF" vlink="#6699FF">
<table border=0 cellpadding=0 cellspacing=0 width=100% class="mainstruct">
<tr height=45><td rowspan=2 height=45 width=45><img src="TheGraduatesLogo.jpg" /></td><td height=45 rowspan=2 align="left"><h1>The Graduates</h1></td>
<td align='right' height=25><?php
if(isset($userLevel)){
	$cartcount='';
	$c=mysql_num_rows(Query("SELECT * FROM orders WHERE customerID='$uidnum' AND status='in cart'"));
	if($c>0) $cartcount=' ['.$c.']';
	if($userLevel == 'user') echo '<a href="orders.php">Orders</a> | <a href="packs.php">Packages</a> | <a href="browse.php">Browse</a> | <a href="cart.php">Cart'.$cartcount.'</a> | <a href="settings.php">Settings</a>';
	if($userLevel == 'producer' || $userLevel == 'producertrader' || $userLevel == 'trader') echo '<a href="orders.php">Orders</a> | <a href="packs.php">Packages</a> | <a href="browse.php">Browse</a> | <a href="cart.php">Cart'.$cartcount.'</a> | <a href="production.php">Production</a> | <a href="settings.php">Settings</a>';
	if($userLevel == 'admin' || $userLevel=='headproducer') echo '<a href="orders.php">Orders</a> | <a href="packs.php">Packages</a> | <a href="browse.php">Browse</a> | <a href="cart.php">Cart'.$cartcount.'</a> | <a href="production.php">Production</a> | <a href="admin.php">Administration</a> | <a href="settings.php">Settings</a>';
}
?></td></tr>
<tr height=20><td height=20 align="right">Welcome, <?php echo (isset($uid)?ucwords(str_replace("\\", "", $uid)).' (<a href="index.php?logout=true">Log out</a>)':"Guest"); ?></td></tr>
</table><hr />
